extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]改良蓄电池阵列"
	att.def = 40
	info = "每次受到技能伤害，永久提高10点血量加成(上限1500)，当属性叠满时，额外获得15%减伤\n[color=#DC143C]同时装备三件时可升级[/color]"

var limit = 1500
func _connect():
	._connect()
	masCha.connect("onHurt", self, "onHurt")

func onHurt(atkInfo):
	if atkInfo.atkType == sys.AtkType.SKILL and att.maxHp < limit:
		att.maxHp += 10
	if att.maxHp >= limit:
		atkInfo.factor -= 0.15

func upgrade():
	name = "[color=#FFFF00][史诗]改良蓄电池阵列"
	att.def = 80
	info = "每次受到技能伤害，永久提高10点血量加成(上限1500)，当属性叠满时，额外获得15%减伤"